package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.DocApplyMaps;
import com.voltmao.persistent.model.DocApplyMapsCriteria;

import java.util.List;
import java.util.Map;

public interface DocApplyMapsMapper {
    int countByExample(DocApplyMapsCriteria example);

    int deleteByExample(DocApplyMapsCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(DocApplyMaps record);

    int insertSelective(DocApplyMaps record);

    List<DocApplyMaps> selectByExample(DocApplyMapsCriteria example);

    DocApplyMaps selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") DocApplyMaps record, @Param("example") DocApplyMapsCriteria example);

    int updateByExample(@Param("record") DocApplyMaps record, @Param("example") DocApplyMapsCriteria example);

    int updateByPrimaryKeySelective(DocApplyMaps record);

    int updateByPrimaryKey(DocApplyMaps record);

    DocApplyMaps selectByExampleForOne(DocApplyMapsCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(DocApplyMapsCriteria example);

    List<Map<String, Object>> selectMapByExample(DocApplyMapsCriteria example);

    /**
     *  根据申请表查询
     * @param applyId 申请表id
     * @param isDel 是否删除
     * @return
     */
    List<Map<String, Object>> selectByApplyId(@Param("applyId") String applyId, @Param("isDel") String isDel);
}